package iotwisp.base.cqrs;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import lombok.Data;

/**
 * 关联到业务模块的领域实体，可以是用户、商品、订单,运营机构等等
 * @author yuxx
 */
@Embeddable
@Data
public class DomainLink {

	// 实体id
	@Column(name = "DOMAIN_ID", length = 64) 
	private String domainId;

	// 实体类型
	@Column(name = "DOMAIN_TYPE", length = 64) 
	private String domainType;
	
	public DomainLink() {
		
	}

	public DomainLink(String domainId, String domainType) {
		this.domainId = domainId;
		this.domainType = domainType;
	}
}
